﻿// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.


using Microsoft.AspNetCore.Identity;

namespace ZFY.UMC.Identity
{
    public class ZFYIdentityErrorDescriber : IdentityErrorDescriber
    {
        public override IdentityError DuplicateUserName(string userName)
        {
            var res = base.DuplicateUserName(userName);
            res.Description = "用户名重复";

            return res;
        }
    }
}